package com.example.bootintegration.datasource;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.support.BeanDefinitionRegistry;
import org.springframework.beans.factory.support.BeanNameGenerator;
import org.springframework.core.env.Environment;
import org.springframework.core.io.ResourceLoader;
import org.springframework.core.type.AnnotationMetadata;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import org.springframework.data.repository.config.AnnotationRepositoryConfigurationSource;

class JpaRepositoryConfigurationSource extends AnnotationRepositoryConfigurationSource {

    private static final Logger log = LoggerFactory.getLogger(JpaRepositoryConfigurationSource.class);
    private final String dataSourceName;
    private final Environment env;

    public JpaRepositoryConfigurationSource(String dataSourceName, AnnotationMetadata metadata, ResourceLoader resourceLoader, Environment env, BeanDefinitionRegistry registry) {
        super(metadata, EnableJpaRepositories.class, resourceLoader, env, registry, (BeanNameGenerator)null);
        this.dataSourceName = dataSourceName;
        this.env = env;
    }

}
